
package service

import (
	"syscall/async"
	"unsafe"
	"runtime"
)

var (
	session *async.Session
)

//extern go_syscall_service_ns_session
func libcSession() unsafe.Pointer

func nsSession() *async.Session {
	if session == nil {
		session = async.WrapSession(libcSession())
		runtime.SetFinalizer(session, nil)
	}

	return session
}
